#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

class Person
{
public:
	string _name = "zhangsan";
	int _age = 18;

	void print()
	{
		cout << "Person" << endl;
	}

	friend int GetA(const Person& s);

};

class Student :public Person
{
public:
	int stid = 114514;

	void print()
	{
		cout << "Student" << endl;
	}

public:

	int a = 110;
};

int GetA(const Person& d)
{
	cout << d._age << endl;
}


int main1()
{
	Student a;
	Person b = a;

	a.print();
	b.print();

	Person& ps = a;
	Person* pp = &a;

	cout << a._name << endl;
	cout << a._age << endl;

	ps._name += " lisi";
	pp->_age += 2;

	cout << a._name << endl;
	cout << a._age << endl;

	return 0;
}

int main()
{


	return 0;
}